import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';

/**
 * stencil配置
 */
export const config: Config = {
    namespace: 'ibiz-stencil-components',
    globalScript: './src/global',
    bundles: [
        { components: ['ibz-plugin-iframe-wrapper'] },
        { components: ['ibz-top-drawer-wrapper'] },
        { components: ['ibz-split-view', 'ibz-split-sash', 'ibz-split-view-panel'] },
        { components: ['ibz-list', 'ibz-list-item'] },
        { components: ['ibz-split-panel'] }
    ],
    taskQueue: 'async',
    plugins: [sass()],
    outputTargets: [
        {
            type: 'dist',
            esmLoaderPath: '../loader'
        },
        {
            type: 'www',
            serviceWorker: null // disable service workers
        }
    ],
    devServer: {
        port: 3000
    }
};
